package cn.stylefeng.guns.modular.fi.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.fi.entity.FiCarrierFreightInfo;
import cn.stylefeng.guns.modular.fi.model.params.FiCarrierFreightInfoParam;
import cn.stylefeng.guns.modular.fi.model.params.YunFeiParam;
import cn.stylefeng.guns.modular.fi.model.result.FiCarrierFreightInfoResult;
import cn.stylefeng.guns.modular.rest.fi.vo.FiCarrierFreightRSVo;
import cn.stylefeng.guns.modular.transport.mapper.TransportDispatchMapper;
import cn.stylefeng.guns.sys.modular.system.mapper.RoleMapper;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 承运商运费对账单 服务类
 * </p>
 *
 * @author zhangzh
 * @since 2024-06-21
 */
public interface FiCarrierFreightInfoService extends IService<FiCarrierFreightInfo> {



    /**
     * 新增
     *
     * @author zhangzh
     * @Date 2024-06-21
     */
    void add(FiCarrierFreightInfoParam param);

    void addByCarrier(FiCarrierFreightInfoParam param);

    /**
     * 删除
     *
     * @author zhangzh
     * @Date 2024-06-21
     */
    void delete(FiCarrierFreightInfoParam param);

    /**
     * 更新
     *
     * @author zhangzh
     * @Date 2024-06-21
     */
    void update(FiCarrierFreightInfoParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-06-21
     */
    FiCarrierFreightInfoResult findBySpec(FiCarrierFreightInfoParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhangzh
     * @Date 2024-06-21
     */
    List<FiCarrierFreightInfoResult> findListBySpec(FiCarrierFreightInfoParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhangzh
     * @Date 2024-06-21
     */
     LayuiPageInfo findPageBySpec(FiCarrierFreightInfoParam param, String condition);


    ResponseData getYunFei(YunFeiParam param);


    List<FiCarrierFreightRSVo> getCarrierFreightList(FiCarrierFreightInfoParam param);

    int updateByids(List<String> list);

    int idxStatIsOk(List<String> list);

}
